package com.godz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("index2teacher")
//我的恩师
public class index2Teacher {
    @TableId(type = IdType.AUTO) //自增id必须增添
    private Integer id;
    //由于数据表名前缀只有一个t,前端无法传值回来.所以全部t改成te
    @TableField("t_name")
    private String teName;
    @TableField("t_status")
    private String teStatus;//职业背景
    @TableField("t_introduce")
    private String teIntroduce;
    @TableField("t_img")
    private String teImg;
}
